package com.ruoyi.text.domain;

import cn.xbatis.db.IdAutoType;
import cn.xbatis.db.annotations.LogicDelete;
import cn.xbatis.db.annotations.Table;
import cn.xbatis.db.annotations.TableId;
import cn.xbatis.db.annotations.Version;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 测试单对象 test_demo
 *
 * @author ruoyi
 * @date 2025-04-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table
public class TestDemo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = IdAutoType.GENERATOR, generatorName = "IdentifierGeneratorType.mpNextId")
    private Long id;
    /**
     * 部门id
     */
    private Long deptId;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 排序号
     */
    private Long orderNum;
    /**
     * key键
     */
    private String testKey;
    /**
     * 值
     */
    private String value;
    /**
     * 版本
     */
    @Version
    private Long version;
    /**
     * 删除标志
     */
    @LogicDelete(beforeValue = "0", afterValue = "1")
    private Long delFlag;

}
